class AdProcesso < ActiveRecord::Base
#set_table_name 'ad_processo'
set_primary_key 'numpro'

has_many :ad_andamento, :foreign_key => 'numpro', :order => 'numanda desc'

  validates_presence_of :titulo, :assunto, :interes
  validates_size_of :titulo, :interes, :maximum => 80
  validates_size_of :assunto, :maximum => 240
  

end
